package com.iris.live.services.data.models;


import javax.persistence.*;
import java.util.Date;

/**
 * 汽车加配基本信息
 */
@Entity
@Table(name = "custom_car_configure", schema = "", catalog = "")
public class CustomCarConfigureModel{

    public static final int STATUS_YES = 1;//生效
    public static final int STATUS_NO = 0;//失效

    private Integer id;//ID
    private String customName;//自定义配置名称
    private Integer storeId;//库存ID
    private String permit;//许可
    private Double totalPrice;//配置精品总价
    private Double factPrice;//实际总价（优惠算取后）
    private Integer status;//是否生效1是0否
    private Double lastMsrp;//更改之前的msrp
    private Date createdTime;//创建时间


    public CustomCarConfigureModel() {
    }

    public CustomCarConfigureModel(String customName, Integer storeId, String permit, Double totalPrice, Double factPrice, Integer status,Double lastMsrp, Date createdTime) {
        this.customName = customName;
        this.storeId = storeId;
        this.permit = permit;
        this.totalPrice = totalPrice;
        this.factPrice = factPrice;
        this.status = status;
        this.lastMsrp = lastMsrp;
        this.createdTime = createdTime;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "custom_name")
    public String getCustomName() {
        return customName;
    }

    public void setCustomName(String customName) {
        this.customName = customName;
    }

    @Basic
    @Column(name = "store_id")
    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    @Basic
    @Column(name = "permit")
    public String getPermit() {
        return permit;
    }

    public void setPermit(String permit) {
        this.permit = permit;
    }

    @Basic
    @Column(name = "total_price")
    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Basic
    @Column(name = "fact_price")
    public Double getFactPrice() {
        return factPrice;
    }

    public void setFactPrice(Double factPrice) {
        this.factPrice = factPrice;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    @Basic
    @Column(name = "last_msrp")
    public Double getLastMsrp() {
        return lastMsrp;
    }

    public void setLastMsrp(Double lastMsrp) {
        this.lastMsrp = lastMsrp;
    }

    @Basic
    @Column(name = "created_time")
    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
}
